﻿using System;
using System.Net;
using Newtonsoft.Json;


namespace AccessLogParser
{
    class AccessLogParser
    {
        static void Main(string[] args)
        {
            AppParamsHelper appParamsHelper = new AppParamsHelper();
            LogHandler logHandler = new LogHandler();

            AppParams appParams = appParamsHelper.GetAppAgrs(args);
            ConfigObject configObject = appParamsHelper.GetAppConfig();
            List<LogData> logDataList = logHandler.GetlogData(appParams, configObject);
            logHandler.WritelogData(logDataList, appParams);
            

        }
    }
}